<me:SDBASE x:Class="WPFExcelReport.K0012"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                     xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
             xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:SDBASE.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="trim"/>
    </me:SDBASE.Resources>
    <WrapPanel>  
        <WF:TBTNEXE IsManage="{Binding IsManage,ElementName=TV}" DLL="TSDDAT" CMD="CTYP" STWNW="MainWindow"  
                    KRS="{Binding SDSA,ElementName=TV}"/>
        <ComboBox   DropDownOpened="ComboBox_DropDownOpened" 
            Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
             Width="60"  
             SelectedValuePath="KEY"
             DisplayMemberPath="KEY"
             ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
             IsSynchronizedWithCurrentItem="True" 
             ScrollViewer.HorizontalScrollBarVisibility="Visible"
            >
        </ComboBox>
        <TextBlock Text="{Binding DES, Source={StaticResource ResourceKey=vwMaster}}" 
                   Visibility="{Binding IsEdit,ElementName=TV, Converter={StaticResource nbv}}"
                   Width="100"
                   />
    </WrapPanel>
</me:SDBASE>
